<HTML>
<HEAD>
<TITLE>KAjaxFramework Demo</TITLE>

<script type="text/javascript" src="framework/default.js"></script>
<script type="text/javascript" src="framework/xml.js"></script>
<script type="text/javascript" src="framework/msgbox.js"></script>
<script type="text/javascript" src="framework/date.js"></script>
<script type="text/javascript" src="framework/login.js"></script>
<script type="text/javascript" src="framework/injection.js"></script>
<script type="text/javascript" src="framework/mail.js"></script>
<script type="text/javascript" src="framework/draganddrop.js"></script>
<script type="text/javascript" src="framework/effects.js"></script>
<script type="text/javascript" src="framework/rightclickmenu.js"></script>
<script type="text/javascript" src="script/default.js"></script>

<link rel="stylesheet" type="text/css" href="style/style.css">


</HEAD>
<BODY onload="AppStart()">
<br>
<h1>Demo delle novita' visuali della versione 1.5 del KAjaxFramework</h1>

<br><br>
<p align=left>
<INPUT type="button" value="Visualizza un Message Box semplice" id=button3 name=button3 onclick = "MsgBox('<strong>Semplice Message Box non modale</strong>', 'Message Box Semplice', 320, 200, 'ok',0)">
</p>

<p align=left>
<INPUT type="button" value="Visualizza un Message Box Modale" id=button3 name=button3 onclick = "MsgBox('Viene inibito l`accesso a tutte le altre finestre', 'Message Box Modale ', 320, 200, 'ok','modal')">
</p>

<p align=left>
<INPUT type="button" value="Visualizza un Message Box con codice html" id=button3 name=button3 onclick = "EEToDo();">
</p>


<p align=left>
<INPUT type="button" value="Aggiunge un elemento `Draggabile`" id=button3 name=button3 onclick = "AggiungiImmagine()">
</p>

<script>
	function AggiungiImmagine() {	
	var newEl = document.createElement('IMG');
	newEl.style.position="absolute";

	if (parseInt(navigator.appVersion)>3) {
			if (navigator.appName=="Netscape") {
				winW = window.innerWidth;
				winH = window.innerHeight;
			}
		if (navigator.appName.indexOf("Microsoft")!=-1) {
			winW = document.body.offsetWidth;
			winH = document.body.offsetHeight;
		 }
	}
	newEl.style.left=parseInt(winW / 2);
	newEl.style.top=parseInt(winH / 2);



	
	newEl.src = "images/io.jpg";	
	var id_img = Math.round(100*Math.random());
	newEl.id = id_img;

	newEl.className="mapItem";

	newEl.style.visibility = "hidden";
	newEl.style.filter = "alpha(opacity=0)";	
	newEl.style.opacity=0;
	newEl.style.MozOpacity=0;

	opacity(id_img,1, 100,500);
	document.body.appendChild(newEl);
	newEl.style.visibility = "visible";	
	document.getElementById(id_img).onmousedown=function(e) {
		dragStart(e);
		};
	}
</script>



</BODY>
</HTML>
